<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Collection | mongodb</title><meta name="description" content="Documentation for mongodb"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<div class="tsd-toolbar-contents container">
<div class="table-cell" id="tsd-search" data-base="..">
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
<div class="field">
<div id="tsd-toolbar-links"></div></div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">mongodb</a></div>
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
<div class="container container-main">
<div class="col-content">
<div class="tsd-page-title">
<ul class="tsd-breadcrumb">
<li><a href="../modules.html">mongodb</a></li>
<li><a href="Collection.html">Collection</a></li></ul>
<h1>Class Collection&lt;TSchema&gt;</h1></div>
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography"><p>The <strong>Collection</strong> class is an internal class that embodies a MongoDB collection
allowing for insert/find/update/delete and other command operation on that MongoDB collection.</p>
<p><strong>COLLECTION Cannot directly be instantiated</strong></p>
</div>
<div class="tsd-comment tsd-typography">
<h4>Example</h4><pre><code class="language-ts"><span class="hl-7">import</span><span class="hl-1"> { </span><span class="hl-6">MongoClient</span><span class="hl-1"> } </span><span class="hl-7">from</span><span class="hl-1"> </span><span class="hl-2">&#39;mongodb&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-4">interface</span><span class="hl-1"> </span><span class="hl-9">Pet</span><span class="hl-1"> {</span><br/><span class="hl-1">  </span><span class="hl-6">name</span><span class="hl-1">: </span><span class="hl-9">string</span><span class="hl-1">;</span><br/><span class="hl-1">  </span><span class="hl-6">kind</span><span class="hl-1">: </span><span class="hl-2">&#39;dog&#39;</span><span class="hl-1"> | </span><span class="hl-2">&#39;cat&#39;</span><span class="hl-1"> | </span><span class="hl-2">&#39;fish&#39;</span><span class="hl-1">;</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">client</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-0">MongoClient</span><span class="hl-1">(</span><span class="hl-2">&#39;mongodb://localhost:27017&#39;</span><span class="hl-1">);</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">pets</span><span class="hl-1"> = </span><span class="hl-6">client</span><span class="hl-1">.</span><span class="hl-0">db</span><span class="hl-1">().</span><span class="hl-0">collection</span><span class="hl-1">&lt;</span><span class="hl-9">Pet</span><span class="hl-1">&gt;(</span><span class="hl-2">&#39;pets&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">petCursor</span><span class="hl-1"> = </span><span class="hl-6">pets</span><span class="hl-1">.</span><span class="hl-0">find</span><span class="hl-1">();</span><br/><br/><span class="hl-7">for</span><span class="hl-1"> </span><span class="hl-7">await</span><span class="hl-1"> (</span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">pet</span><span class="hl-1"> </span><span class="hl-4">of</span><span class="hl-1"> </span><span class="hl-6">petCursor</span><span class="hl-1">) {</span><br/><span class="hl-1">  </span><span class="hl-6">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-2">`</span><span class="hl-4">${</span><span class="hl-6">pet</span><span class="hl-11">.</span><span class="hl-6">name</span><span class="hl-4">}</span><span class="hl-2"> is a </span><span class="hl-4">${</span><span class="hl-6">pet</span><span class="hl-11">.</span><span class="hl-6">kind</span><span class="hl-4">}</span><span class="hl-2">!`</span><span class="hl-1">);</span><br/><span class="hl-1">}</span>
</code><button>Copy</button></pre>
</div></section> 
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol"> extends </span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a> = <a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a></h4></li></ul></section> 
<section class="tsd-panel tsd-hierarchy">
<h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">Collection</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L157">src/collection.ts:157</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
<h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></svg> Index</h5></summary>
<div class="tsd-accordion-details">
<section class="tsd-index-section">
<h3 class="tsd-index-heading">Accessors</h3>
<div class="tsd-index-list"><a href="Collection.html#bsonOptions" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g></svg><span>bson<wbr/>Options</span></a>
<a href="Collection.html#collectionName" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>collection<wbr/>Name</span></a>
<a href="Collection.html#dbName" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>db<wbr/>Name</span></a>
<a href="Collection.html#hint" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>hint</span></a>
<a href="Collection.html#namespace" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>namespace</span></a>
<a href="Collection.html#readConcern" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>read<wbr/>Concern</span></a>
<a href="Collection.html#readPreference" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>read<wbr/>Preference</span></a>
<a href="Collection.html#writeConcern" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>write<wbr/>Concern</span></a>
</div></section>
<section class="tsd-index-section">
<h3 class="tsd-index-heading">Methods</h3>
<div class="tsd-index-list"><a href="Collection.html#aggregate" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g></svg><span>aggregate</span></a>
<a href="Collection.html#bulkWrite" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>bulk<wbr/>Write</span></a>
<a href="Collection.html#count" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>count</span></a>
<a href="Collection.html#countDocuments" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>count<wbr/>Documents</span></a>
<a href="Collection.html#createIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Index</span></a>
<a href="Collection.html#createIndexes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Indexes</span></a>
<a href="Collection.html#createSearchIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Search<wbr/>Index</span></a>
<a href="Collection.html#createSearchIndexes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Search<wbr/>Indexes</span></a>
<a href="Collection.html#deleteMany" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>delete<wbr/>Many</span></a>
<a href="Collection.html#deleteOne" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>delete<wbr/>One</span></a>
<a href="Collection.html#distinct" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>distinct</span></a>
<a href="Collection.html#drop" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>drop</span></a>
<a href="Collection.html#dropIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>drop<wbr/>Index</span></a>
<a href="Collection.html#dropIndexes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>drop<wbr/>Indexes</span></a>
<a href="Collection.html#dropSearchIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>drop<wbr/>Search<wbr/>Index</span></a>
<a href="Collection.html#estimatedDocumentCount" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>estimated<wbr/>Document<wbr/>Count</span></a>
<a href="Collection.html#find" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find</span></a>
<a href="Collection.html#findOne" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>One</span></a>
<a href="Collection.html#findOneAndDelete" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>One<wbr/>And<wbr/>Delete</span></a>
<a href="Collection.html#findOneAndReplace" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>One<wbr/>And<wbr/>Replace</span></a>
<a href="Collection.html#findOneAndUpdate" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>One<wbr/>And<wbr/>Update</span></a>
<a href="Collection.html#indexExists" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>index<wbr/>Exists</span></a>
<a href="Collection.html#indexInformation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>index<wbr/>Information</span></a>
<a href="Collection.html#indexes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>indexes</span></a>
<a href="Collection.html#initializeOrderedBulkOp" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>initialize<wbr/>Ordered<wbr/>Bulk<wbr/>Op</span></a>
<a href="Collection.html#initializeUnorderedBulkOp" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>initialize<wbr/>Unordered<wbr/>Bulk<wbr/>Op</span></a>
<a href="Collection.html#insertMany" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>insert<wbr/>Many</span></a>
<a href="Collection.html#insertOne" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>insert<wbr/>One</span></a>
<a href="Collection.html#isCapped" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>is<wbr/>Capped</span></a>
<a href="Collection.html#listIndexes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>list<wbr/>Indexes</span></a>
<a href="Collection.html#listSearchIndexes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>list<wbr/>Search<wbr/>Indexes</span></a>
<a href="Collection.html#options" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>options</span></a>
<a href="Collection.html#rename" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>rename</span></a>
<a href="Collection.html#replaceOne" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>replace<wbr/>One</span></a>
<a href="Collection.html#stats" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>stats</span></a>
<a href="Collection.html#updateMany" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>update<wbr/>Many</span></a>
<a href="Collection.html#updateOne" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>update<wbr/>One</span></a>
<a href="Collection.html#updateSearchIndex" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>update<wbr/>Search<wbr/>Index</span></a>
<a href="Collection.html#watch" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>watch</span></a>
</div></section></div></details></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Accessors</h2>
<section class="tsd-panel tsd-member"><a id="bsonOptions" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>bson<wbr/>Options</span><a href="#bsonOptions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" id="icon-anchor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="bsonOptions.bsonOptions-1"><span class="tsd-signature-symbol">get</span> bsonOptions<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/BSONSerializeOptions.html" class="tsd-signature-type tsd-kind-interface">BSONSerializeOptions</a></li>
<li class="tsd-description">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/BSONSerializeOptions.html" class="tsd-signature-type tsd-kind-interface">BSONSerializeOptions</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L239">src/collection.ts:239</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="collectionName" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>collection<wbr/>Name</span><a href="#collectionName" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="collectionName.collectionName-1"><span class="tsd-signature-symbol">get</span> collectionName<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>The name of this collection</p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L196">src/collection.ts:196</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="dbName" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>db<wbr/>Name</span><a href="#dbName" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="dbName.dbName-1"><span class="tsd-signature-symbol">get</span> dbName<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>The name of the database this collection belongs to</p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L189">src/collection.ts:189</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="hint" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>hint</span><a href="#hint" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="hint.hint-1"><span class="tsd-signature-symbol">get</span> hint<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../types/Hint.html" class="tsd-signature-type tsd-kind-type-alias">Hint</a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>The current index hint for the collection</p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../types/Hint.html" class="tsd-signature-type tsd-kind-type-alias">Hint</a></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L255">src/collection.ts:255</a></li></ul></aside></li>
<li class="tsd-signature" id="hint.hint-2"><span class="tsd-signature-symbol">set</span> hint<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">v</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">v</span>: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../types/Hint.html" class="tsd-signature-type tsd-kind-type-alias">Hint</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L259">src/collection.ts:259</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="namespace" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>namespace</span><a href="#namespace" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="namespace.namespace-1"><span class="tsd-signature-symbol">get</span> namespace<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>The namespace of this collection, in the format <code>${this.dbName}.${this.collectionName}</code></p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L203">src/collection.ts:203</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="readConcern" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>read<wbr/>Concern</span><a href="#readConcern" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="readConcern.readConcern-1"><span class="tsd-signature-symbol">get</span> readConcern<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="ReadConcern.html" class="tsd-signature-type tsd-kind-class">ReadConcern</a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>The current readConcern of the collection. If not explicitly defined for
this collection, will be inherited from the parent DB</p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="ReadConcern.html" class="tsd-signature-type tsd-kind-class">ReadConcern</a></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L220">src/collection.ts:220</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="readPreference" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>read<wbr/>Preference</span><a href="#readPreference" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="readPreference.readPreference-1"><span class="tsd-signature-symbol">get</span> readPreference<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="ReadPreference.html" class="tsd-signature-type tsd-kind-class">ReadPreference</a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>The current readPreference of the collection. If not explicitly defined for
this collection, will be inherited from the parent DB</p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="ReadPreference.html" class="tsd-signature-type tsd-kind-class">ReadPreference</a></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L231">src/collection.ts:231</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="writeConcern" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>write<wbr/>Concern</span><a href="#writeConcern" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="writeConcern.writeConcern-1"><span class="tsd-signature-symbol">get</span> writeConcern<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="WriteConcern.html" class="tsd-signature-type tsd-kind-class">WriteConcern</a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>The current writeConcern of the collection. If not explicitly defined for
this collection, will be inherited from the parent DB</p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="WriteConcern.html" class="tsd-signature-type tsd-kind-class">WriteConcern</a></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L247">src/collection.ts:247</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member"><a id="aggregate" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>aggregate</span><a href="#aggregate" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="aggregate.aggregate-1"><span class="tsd-kind-call-signature">aggregate</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pipeline</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="AggregationCursor.html" class="tsd-signature-type tsd-kind-class">AggregationCursor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><a href="#aggregate.aggregate-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Execute an aggregation framework pipeline against the collection, needs MongoDB &gt;= 2.2</p>
</div>
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol"> extends </span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a> = <a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">pipeline</span>: <a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5>
<div class="tsd-comment tsd-typography"><p>An array of aggregation pipelines to execute</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/AggregateOptions.html" class="tsd-signature-type tsd-kind-interface">AggregateOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="AggregationCursor.html" class="tsd-signature-type tsd-kind-class">AggregationCursor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L940">src/collection.ts:940</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="bulkWrite" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>bulk<wbr/>Write</span><a href="#bulkWrite" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="bulkWrite.bulkWrite-1"><span class="tsd-kind-call-signature">bulk<wbr/>Write</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">operations</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="BulkWriteResult.html" class="tsd-signature-type tsd-kind-class">BulkWriteResult</a><span class="tsd-signature-symbol">&gt;</span><a href="#bulkWrite.bulkWrite-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Perform a bulkWrite operation without a fluent API</p>
<p>Legal operation types are</p>
<ul>
<li><code>insertOne</code></li>
<li><code>replaceOne</code></li>
<li><code>updateOne</code></li>
<li><code>updateMany</code></li>
<li><code>deleteOne</code></li>
<li><code>deleteMany</code></li>
</ul>
<p>If documents passed in do not contain the <strong>_id</strong> field,
one will be added to each of the documents missing it by the driver, mutating the document. This behavior
can be overridden by setting the <strong>forceServerObjectId</strong> flag.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">operations</span>: <a href="../types/AnyBulkWriteOperation.html" class="tsd-signature-type tsd-kind-type-alias">AnyBulkWriteOperation</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span></h5>
<div class="tsd-comment tsd-typography"><p>Bulk operations to perform</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/BulkWriteOptions.html" class="tsd-signature-type tsd-kind-interface">BulkWriteOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="BulkWriteResult.html" class="tsd-signature-type tsd-kind-class">BulkWriteResult</a><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Throws</h4><p>MongoDriverError if operations is not an array</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L326">src/collection.ts:326</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="count" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>count</span><a href="#count" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="count.count-1"><span class="tsd-kind-call-signature">count</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span><a href="#count.count-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>An estimated count of matching documents in the db to a filter.</p>
<p><strong>NOTE:</strong> This method has been deprecated, since it does not provide an accurate count of the documents
in a collection. To obtain an accurate count of documents in the collection, use Collection#countDocuments| countDocuments.
To obtain an estimated count of all documents in the collection, use Collection#estimatedDocumentCount| estimatedDocumentCount.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter for the count.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CountOptions.html" class="tsd-signature-type tsd-kind-interface">CountOptions</a><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Deprecated</h4><p>use Collection#countDocuments| countDocuments or Collection#estimatedDocumentCount| estimatedDocumentCount instead</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1045">src/collection.ts:1045</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="countDocuments" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>count<wbr/>Documents</span><a href="#countDocuments" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="countDocuments.countDocuments-1"><span class="tsd-kind-call-signature">count<wbr/>Documents</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span><a href="#countDocuments.countDocuments-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Gets the number of documents matching the filter.
For a fast count of the total documents in a collection see Collection#estimatedDocumentCount| estimatedDocumentCount.
<strong>Note</strong>: When migrating from Collection#count| count to Collection#countDocuments| countDocuments
the following query operators must be replaced:</p>
<table>
<thead>
<tr>
<th>Operator</th>
<th>Replacement</th>
</tr>
</thead>
<tbody><tr>
<td><code>$where</code></td>
<td><a href="https://www.mongodb.com/docs/manual/reference/operator/query/expr/"><code>$expr</code></a></td>
</tr>
<tr>
<td><code>$near</code></td>
<td><a href="https://www.mongodb.com/docs/manual/reference/operator/query/geoWithin/"><code>$geoWithin</code></a> with <a href="https://www.mongodb.com/docs/manual/reference/operator/query/center/#op._S_center"><code>$center</code></a></td>
</tr>
<tr>
<td><code>$nearSphere</code></td>
<td><a href="https://www.mongodb.com/docs/manual/reference/operator/query/geoWithin/"><code>$geoWithin</code></a> with <a href="https://www.mongodb.com/docs/manual/reference/operator/query/centerSphere/#op._S_centerSphere"><code>$centerSphere</code></a></td>
</tr>
</tbody></table>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter for the count</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CountDocumentsOptions.html" class="tsd-signature-type tsd-kind-interface">CountDocumentsOptions</a><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>See</h4><ul>
<li><a href="https://www.mongodb.com/docs/manual/reference/operator/query/expr/">https://www.mongodb.com/docs/manual/reference/operator/query/expr/</a></li>
<li><a href="https://www.mongodb.com/docs/manual/reference/operator/query/geoWithin/">https://www.mongodb.com/docs/manual/reference/operator/query/geoWithin/</a></li>
<li><a href="https://www.mongodb.com/docs/manual/reference/operator/query/center/#op._S_center">https://www.mongodb.com/docs/manual/reference/operator/query/center/#op._S_center</a></li>
<li><a href="https://www.mongodb.com/docs/manual/reference/operator/query/centerSphere/#op._S_centerSphere">https://www.mongodb.com/docs/manual/reference/operator/query/centerSphere/#op._S_centerSphere</a></li>
</ul>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L739">src/collection.ts:739</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="createIndex" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>Index</span><a href="#createIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="createIndex.createIndex-1"><span class="tsd-kind-call-signature">create<wbr/>Index</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">indexSpec</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><a href="#createIndex.createIndex-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates an index on the db and collection collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">indexSpec</span>: <a href="../types/IndexSpecification.html" class="tsd-signature-type tsd-kind-type-alias">IndexSpecification</a></h5>
<div class="tsd-comment tsd-typography"><p>The field name or index specification to create an index for</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CreateIndexesOptions.html" class="tsd-signature-type tsd-kind-interface">CreateIndexesOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Example</h4><pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">collection</span><span class="hl-1"> = </span><span class="hl-6">client</span><span class="hl-1">.</span><span class="hl-0">db</span><span class="hl-1">(</span><span class="hl-2">&#39;foo&#39;</span><span class="hl-1">).</span><span class="hl-0">collection</span><span class="hl-1">(</span><span class="hl-2">&#39;bar&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">collection</span><span class="hl-1">.</span><span class="hl-0">createIndex</span><span class="hl-1">({ </span><span class="hl-6">a:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1">, </span><span class="hl-6">b:</span><span class="hl-1"> -</span><span class="hl-8">1</span><span class="hl-1"> });</span><br/><br/><span class="hl-3">// Alternate syntax for { c: 1, d: -1 } that ensures order of indexes</span><br/><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">collection</span><span class="hl-1">.</span><span class="hl-0">createIndex</span><span class="hl-1">([ [</span><span class="hl-6">c</span><span class="hl-1">, </span><span class="hl-8">1</span><span class="hl-1">], [</span><span class="hl-6">d</span><span class="hl-1">, -</span><span class="hl-8">1</span><span class="hl-1">] ]);</span><br/><br/><span class="hl-3">// Equivalent to { e: 1 }</span><br/><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">collection</span><span class="hl-1">.</span><span class="hl-0">createIndex</span><span class="hl-1">(</span><span class="hl-2">&#39;e&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-3">// Equivalent to { f: 1, g: 1 }</span><br/><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">collection</span><span class="hl-1">.</span><span class="hl-0">createIndex</span><span class="hl-1">([</span><span class="hl-2">&#39;f&#39;</span><span class="hl-1">, </span><span class="hl-2">&#39;g&#39;</span><span class="hl-1">])</span><br/><br/><span class="hl-3">// Equivalent to { h: 1, i: -1 }</span><br/><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">collection</span><span class="hl-1">.</span><span class="hl-0">createIndex</span><span class="hl-1">([ { </span><span class="hl-6">h:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1"> }, { </span><span class="hl-6">i:</span><span class="hl-1"> -</span><span class="hl-8">1</span><span class="hl-1"> } ]);</span><br/><br/><span class="hl-3">// Equivalent to { j: 1, k: -1, l: 2d }</span><br/><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">collection</span><span class="hl-1">.</span><span class="hl-0">createIndex</span><span class="hl-1">([</span><span class="hl-2">&#39;j&#39;</span><span class="hl-1">, [</span><span class="hl-2">&#39;k&#39;</span><span class="hl-1">, -</span><span class="hl-8">1</span><span class="hl-1">], { </span><span class="hl-6">l:</span><span class="hl-1"> </span><span class="hl-2">&#39;2d&#39;</span><span class="hl-1"> }])</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L568">src/collection.ts:568</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="createIndexes" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>Indexes</span><a href="#createIndexes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="createIndexes.createIndexes-1"><span class="tsd-kind-call-signature">create<wbr/>Indexes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">indexSpecs</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#createIndexes.createIndexes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates multiple indexes in the collection, this method is only supported for
MongoDB 2.6 or higher. Earlier version of MongoDB will throw a command not supported
error.</p>
<p><strong>Note</strong>: Unlike Collection#createIndex| createIndex, this function takes in raw index specifications.
Index specifications are defined <a href="https://www.mongodb.com/docs/manual/reference/command/createIndexes/|">here</a>.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">indexSpecs</span>: <a href="../interfaces/IndexDescription.html" class="tsd-signature-type tsd-kind-interface">IndexDescription</a><span class="tsd-signature-symbol">[]</span></h5>
<div class="tsd-comment tsd-typography"><p>An array of index specifications to be created</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CreateIndexesOptions.html" class="tsd-signature-type tsd-kind-interface">CreateIndexesOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Example</h4><pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">collection</span><span class="hl-1"> = </span><span class="hl-6">client</span><span class="hl-1">.</span><span class="hl-0">db</span><span class="hl-1">(</span><span class="hl-2">&#39;foo&#39;</span><span class="hl-1">).</span><span class="hl-0">collection</span><span class="hl-1">(</span><span class="hl-2">&#39;bar&#39;</span><span class="hl-1">);</span><br/><span class="hl-7">await</span><span class="hl-1"> </span><span class="hl-6">collection</span><span class="hl-1">.</span><span class="hl-0">createIndexes</span><span class="hl-1">([</span><br/><span class="hl-1">  </span><span class="hl-3">// Simple index on field fizz</span><br/><span class="hl-1">  {</span><br/><span class="hl-1">    </span><span class="hl-6">key:</span><span class="hl-1"> { </span><span class="hl-6">fizz:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1"> },</span><br/><span class="hl-1">  }</span><br/><span class="hl-1">  </span><span class="hl-3">// wildcard index</span><br/><span class="hl-1">  {</span><br/><span class="hl-1">    </span><span class="hl-6">key:</span><span class="hl-1"> { </span><span class="hl-2">&#39;$**&#39;</span><span class="hl-6">:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1"> }</span><br/><span class="hl-1">  },</span><br/><span class="hl-1">  </span><span class="hl-3">// named index on darmok and jalad</span><br/><span class="hl-1">  {</span><br/><span class="hl-1">    </span><span class="hl-6">key:</span><span class="hl-1"> { </span><span class="hl-6">darmok:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1">, </span><span class="hl-6">jalad:</span><span class="hl-1"> -</span><span class="hl-8">1</span><span class="hl-1"> }</span><br/><span class="hl-1">    </span><span class="hl-6">name</span><span class="hl-1">: </span><span class="hl-2">&#39;tanagra&#39;</span><br/><span class="hl-1">  }</span><br/><span class="hl-1">]);</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L614">src/collection.ts:614</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="createSearchIndex" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>Search<wbr/>Index</span><a href="#createSearchIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="createSearchIndex.createSearchIndex-1"><span class="tsd-kind-call-signature">create<wbr/>Search<wbr/>Index</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">description</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><a href="#createSearchIndex.createSearchIndex-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates a single search index for the collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">description</span>: <a href="../interfaces/SearchIndexDescription.html" class="tsd-signature-type tsd-kind-interface">SearchIndexDescription</a></h5>
<div class="tsd-comment tsd-typography"><p>The index description for the new search index.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise that resolves to the name of the new search index.</p>

<div class="tsd-comment tsd-typography">
<h4>Remarks</h4><p>Only available when used against a 7.0+ Atlas cluster.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1093">src/collection.ts:1093</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="createSearchIndexes" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>Search<wbr/>Indexes</span><a href="#createSearchIndexes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="createSearchIndexes.createSearchIndexes-1"><span class="tsd-kind-call-signature">create<wbr/>Search<wbr/>Indexes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">descriptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#createSearchIndexes.createSearchIndexes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates multiple search indexes for the current collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">descriptions</span>: <a href="../interfaces/SearchIndexDescription.html" class="tsd-signature-type tsd-kind-interface">SearchIndexDescription</a><span class="tsd-signature-symbol">[]</span></h5>
<div class="tsd-comment tsd-typography"><p>An array of <code>SearchIndexDescription</code>s for the new search indexes.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise that resolves to an array of the newly created search index names.</p>

<div class="tsd-comment tsd-typography">
<h4>Remarks</h4><p>Only available when used against a 7.0+ Atlas cluster.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1107">src/collection.ts:1107</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="deleteMany" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>delete<wbr/>Many</span><a href="#deleteMany" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="deleteMany.deleteMany-1"><span class="tsd-kind-call-signature">delete<wbr/>Many</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeleteResult.html" class="tsd-signature-type tsd-kind-interface">DeleteResult</a><span class="tsd-signature-symbol">&gt;</span><a href="#deleteMany.deleteMany-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Delete multiple documents from a collection</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter used to select the documents to remove</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/DeleteOptions.html" class="tsd-signature-type tsd-kind-interface">DeleteOptions</a><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeleteResult.html" class="tsd-signature-type tsd-kind-interface">DeleteResult</a><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L435">src/collection.ts:435</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="deleteOne" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>delete<wbr/>One</span><a href="#deleteOne" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="deleteOne.deleteOne-1"><span class="tsd-kind-call-signature">delete<wbr/>One</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeleteResult.html" class="tsd-signature-type tsd-kind-interface">DeleteResult</a><span class="tsd-signature-symbol">&gt;</span><a href="#deleteOne.deleteOne-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Delete a document from a collection</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter used to select the document to remove</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/DeleteOptions.html" class="tsd-signature-type tsd-kind-interface">DeleteOptions</a><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeleteResult.html" class="tsd-signature-type tsd-kind-interface">DeleteResult</a><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L419">src/collection.ts:419</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="distinct" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>distinct</span><a href="#distinct" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="distinct.distinct-1"><span class="tsd-kind-call-signature">distinct</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Flatten.html" class="tsd-signature-type tsd-kind-type-alias">Flatten</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#distinct.distinct-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>The distinct command returns a list of distinct values for the given key across a collection.</p>
</div>
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type tsd-kind-type-parameter">Key</span></h5>
<div class="tsd-comment tsd-typography"><p>Field of the document to find distinct values for</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Flatten.html" class="tsd-signature-type tsd-kind-type-alias">Flatten</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L756">src/collection.ts:756</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="distinct.distinct-2"><span class="tsd-kind-call-signature">distinct</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">key</span>, <span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Flatten.html" class="tsd-signature-type tsd-kind-type-alias">Flatten</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#distinct.distinct-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type tsd-kind-type-parameter">Key</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Flatten.html" class="tsd-signature-type tsd-kind-type-alias">Flatten</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L759">src/collection.ts:759</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="distinct.distinct-3"><span class="tsd-kind-call-signature">distinct</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">key</span>, <span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Flatten.html" class="tsd-signature-type tsd-kind-type-alias">Flatten</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#distinct.distinct-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type tsd-kind-type-parameter">Key</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CommandOperationOptions.html" class="tsd-signature-type tsd-kind-interface">CommandOperationOptions</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Flatten.html" class="tsd-signature-type tsd-kind-type-alias">Flatten</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">Key</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L763">src/collection.ts:763</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="distinct.distinct-4"><span class="tsd-kind-call-signature">distinct</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#distinct.distinct-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L770">src/collection.ts:770</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="distinct.distinct-5"><span class="tsd-kind-call-signature">distinct</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">key</span>, <span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#distinct.distinct-5" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type">string</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L771">src/collection.ts:771</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="distinct.distinct-6"><span class="tsd-kind-call-signature">distinct</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">key</span>, <span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#distinct.distinct-6" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type">string</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CommandOperationOptions.html" class="tsd-signature-type tsd-kind-interface">CommandOperationOptions</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L772">src/collection.ts:772</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="drop" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>drop</span><a href="#drop" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="drop.drop-1"><span class="tsd-kind-call-signature">drop</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span><a href="#drop.drop-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Drop the collection from the database, removing it permanently. New accesses will create a new collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/DropCollectionOptions.html" class="tsd-signature-type tsd-kind-interface">DropCollectionOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L470">src/collection.ts:470</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="dropIndex" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>drop<wbr/>Index</span><a href="#dropIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="dropIndex.dropIndex-1"><span class="tsd-kind-call-signature">drop<wbr/>Index</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">indexName</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span><a href="#dropIndex.dropIndex-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Drops an index from this collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">indexName</span>: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography"><p>Name of the index to drop.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CommandOperationOptions.html" class="tsd-signature-type tsd-kind-interface">CommandOperationOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L635">src/collection.ts:635</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="dropIndexes" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>drop<wbr/>Indexes</span><a href="#dropIndexes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="dropIndexes.dropIndexes-1"><span class="tsd-kind-call-signature">drop<wbr/>Indexes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span><a href="#dropIndexes.dropIndexes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Drops all indexes from this collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CommandOperationOptions.html" class="tsd-signature-type tsd-kind-interface">CommandOperationOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L650">src/collection.ts:650</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="dropSearchIndex" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>drop<wbr/>Search<wbr/>Index</span><a href="#dropSearchIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="dropSearchIndex.dropSearchIndex-1"><span class="tsd-kind-call-signature">drop<wbr/>Search<wbr/>Index</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#dropSearchIndex.dropSearchIndex-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Deletes a search index by index name.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography"><p>The name of the search index to be deleted.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Remarks</h4><p>Only available when used against a 7.0+ Atlas cluster.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1121">src/collection.ts:1121</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="estimatedDocumentCount" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>estimated<wbr/>Document<wbr/>Count</span><a href="#estimatedDocumentCount" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="estimatedDocumentCount.estimatedDocumentCount-1"><span class="tsd-kind-call-signature">estimated<wbr/>Document<wbr/>Count</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span><a href="#estimatedDocumentCount.estimatedDocumentCount-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Gets an estimate of the count of documents in a collection using collection metadata.
This will always run a count command on all server versions.</p>
<p>due to an oversight in versions 5.0.0-5.0.8 of MongoDB, the count command,
which estimatedDocumentCount uses in its implementation, was not included in v1 of
the Stable API, and so users of the Stable API with estimatedDocumentCount are
recommended to upgrade their server version to 5.0.9+ or set apiStrict: false to avoid
encountering errors.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/EstimatedDocumentCountOptions.html" class="tsd-signature-type tsd-kind-interface">EstimatedDocumentCountOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>See</h4><p><a href="https://www.mongodb.com/docs/manual/reference/command/count/#behavior|Count:">Behavior</a></p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L707">src/collection.ts:707</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="find" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>find</span><a href="#find" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="find.find-1"><span class="tsd-kind-call-signature">find</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="FindCursor.html" class="tsd-signature-type tsd-kind-class">FindCursor</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#find.find-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates a cursor for a filter that can be used to iterate over results from MongoDB</p>
</div>
<h4 class="tsd-returns-title">Returns <a href="FindCursor.html" class="tsd-signature-type tsd-kind-class">FindCursor</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L504">src/collection.ts:504</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="find.find-2"><span class="tsd-kind-call-signature">find</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="FindCursor.html" class="tsd-signature-type tsd-kind-class">FindCursor</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#find.find-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOptions.html" class="tsd-signature-type tsd-kind-interface">FindOptions</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="FindCursor.html" class="tsd-signature-type tsd-kind-class">FindCursor</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L505">src/collection.ts:505</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="find.find-3"><span class="tsd-kind-call-signature">find</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="FindCursor.html" class="tsd-signature-type tsd-kind-class">FindCursor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><a href="#find.find-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol"> extends </span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOptions.html" class="tsd-signature-type tsd-kind-interface">FindOptions</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="FindCursor.html" class="tsd-signature-type tsd-kind-class">FindCursor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L506">src/collection.ts:506</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="findOne" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>find<wbr/>One</span><a href="#findOne" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="findOne.findOne-1"><span class="tsd-kind-call-signature">find<wbr/>One</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOne.findOne-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Fetches the first document that matches the filter</p>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L483">src/collection.ts:483</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOne.findOne-2"><span class="tsd-kind-call-signature">find<wbr/>One</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOne.findOne-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L484">src/collection.ts:484</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOne.findOne-3"><span class="tsd-kind-call-signature">find<wbr/>One</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOne.findOne-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOptions.html" class="tsd-signature-type tsd-kind-interface">FindOptions</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L485">src/collection.ts:485</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOne.findOne-4"><span class="tsd-kind-call-signature">find<wbr/>One</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOne.findOne-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">T</span> = <span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span></h4></li></ul></section>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L488">src/collection.ts:488</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOne.findOne-5"><span class="tsd-kind-call-signature">find<wbr/>One</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOne.findOne-5" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">T</span> = <span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L489">src/collection.ts:489</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOne.findOne-6"><span class="tsd-kind-call-signature">find<wbr/>One</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOne.findOne-6" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">T</span> = <span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOptions.html" class="tsd-signature-type tsd-kind-interface">FindOptions</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L490">src/collection.ts:490</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="findOneAndDelete" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>find<wbr/>One<wbr/>And<wbr/>Delete</span><a href="#findOneAndDelete" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="findOneAndDelete.findOneAndDelete-1"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Delete</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndDelete.findOneAndDelete-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Find a document and delete it in one atomic operation. Requires a write lock for the duration of the operation.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter used to select the document to remove</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndDeleteOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndDeleteOptions</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">includeResultMetadata</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L823">src/collection.ts:823</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndDelete.findOneAndDelete-2"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Delete</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndDelete.findOneAndDelete-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndDeleteOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndDeleteOptions</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">includeResultMetadata</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L827">src/collection.ts:827</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndDelete.findOneAndDelete-3"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Delete</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndDelete.findOneAndDelete-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndDeleteOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndDeleteOptions</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L831">src/collection.ts:831</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndDelete.findOneAndDelete-4"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Delete</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndDelete.findOneAndDelete-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L835">src/collection.ts:835</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="findOneAndReplace" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>find<wbr/>One<wbr/>And<wbr/>Replace</span><a href="#findOneAndReplace" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="findOneAndReplace.findOneAndReplace-1"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Replace</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">replacement</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndReplace.findOneAndReplace-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Find a document and replace it in one atomic operation. Requires a write lock for the duration of the operation.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter used to select the document to replace</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">replacement</span>: <a href="../types/WithoutId.html" class="tsd-signature-type tsd-kind-type-alias">WithoutId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The Document that replaces the matching document</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndReplaceOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndReplaceOptions</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">includeResultMetadata</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L857">src/collection.ts:857</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndReplace.findOneAndReplace-2"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Replace</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">replacement</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndReplace.findOneAndReplace-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">replacement</span>: <a href="../types/WithoutId.html" class="tsd-signature-type tsd-kind-type-alias">WithoutId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndReplaceOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndReplaceOptions</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">includeResultMetadata</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L862">src/collection.ts:862</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndReplace.findOneAndReplace-3"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Replace</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">replacement</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndReplace.findOneAndReplace-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">replacement</span>: <a href="../types/WithoutId.html" class="tsd-signature-type tsd-kind-type-alias">WithoutId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndReplaceOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndReplaceOptions</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L867">src/collection.ts:867</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndReplace.findOneAndReplace-4"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Replace</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">replacement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndReplace.findOneAndReplace-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">replacement</span>: <a href="../types/WithoutId.html" class="tsd-signature-type tsd-kind-type-alias">WithoutId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L872">src/collection.ts:872</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="findOneAndUpdate" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>find<wbr/>One<wbr/>And<wbr/>Update</span><a href="#findOneAndUpdate" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="findOneAndUpdate.findOneAndUpdate-1"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Update</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">update</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndUpdate.findOneAndUpdate-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Find a document and update it in one atomic operation. Requires a write lock for the duration of the operation.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter used to select the document to update</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">update</span>: <a href="../types/UpdateFilter.html" class="tsd-signature-type tsd-kind-type-alias">UpdateFilter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>Update operations to be performed on the document</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndUpdateOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndUpdateOptions</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">includeResultMetadata</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L899">src/collection.ts:899</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndUpdate.findOneAndUpdate-2"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Update</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">update</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndUpdate.findOneAndUpdate-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">update</span>: <a href="../types/UpdateFilter.html" class="tsd-signature-type tsd-kind-type-alias">UpdateFilter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndUpdateOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndUpdateOptions</a><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">includeResultMetadata</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="../types/WithId.html" class="tsd-signature-type tsd-kind-type-alias">WithId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L904">src/collection.ts:904</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndUpdate.findOneAndUpdate-3"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Update</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">update</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndUpdate.findOneAndUpdate-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">update</span>: <a href="../types/UpdateFilter.html" class="tsd-signature-type tsd-kind-type-alias">UpdateFilter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/FindOneAndUpdateOptions.html" class="tsd-signature-type tsd-kind-interface">FindOneAndUpdateOptions</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L909">src/collection.ts:909</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="findOneAndUpdate.findOneAndUpdate-4"><span class="tsd-kind-call-signature">find<wbr/>One<wbr/>And<wbr/>Update</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">update</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#findOneAndUpdate.findOneAndUpdate-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">update</span>: <a href="../types/UpdateFilter.html" class="tsd-signature-type tsd-kind-type-alias">UpdateFilter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyResult.html" class="tsd-signature-type tsd-kind-interface">ModifyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L914">src/collection.ts:914</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="indexExists" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>index<wbr/>Exists</span><a href="#indexExists" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="indexExists.indexExists-1"><span class="tsd-kind-call-signature">index<wbr/>Exists</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">indexes</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span><a href="#indexExists.indexExists-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Checks if one or more indexes exist on the collection, fails on first non-existing index</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">indexes</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5>
<div class="tsd-comment tsd-typography"><p>One or more index names to check.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/IndexInformationOptions.html" class="tsd-signature-type tsd-kind-interface">IndexInformationOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L672">src/collection.ts:672</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="indexInformation" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>index<wbr/>Information</span><a href="#indexInformation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="indexInformation.indexInformation-1"><span class="tsd-kind-call-signature">index<wbr/>Information</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span><a href="#indexInformation.indexInformation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Retrieves this collections index info.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/IndexInformationOptions.html" class="tsd-signature-type tsd-kind-interface">IndexInformationOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L687">src/collection.ts:687</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="indexes" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>indexes</span><a href="#indexes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="indexes.indexes-1"><span class="tsd-kind-call-signature">indexes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#indexes.indexes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Retrieve all the indexes on the collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/IndexInformationOptions.html" class="tsd-signature-type tsd-kind-interface">IndexInformationOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L795">src/collection.ts:795</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="initializeOrderedBulkOp" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>initialize<wbr/>Ordered<wbr/>Bulk<wbr/>Op</span><a href="#initializeOrderedBulkOp" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="initializeOrderedBulkOp.initializeOrderedBulkOp-1"><span class="tsd-kind-call-signature">initialize<wbr/>Ordered<wbr/>Bulk<wbr/>Op</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="OrderedBulkOperation.html" class="tsd-signature-type tsd-kind-class">OrderedBulkOperation</a><a href="#initializeOrderedBulkOp.initializeOrderedBulkOp-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Initiate an In order bulk write operation. Operations will be serially executed in the order they are added, creating a new operation for each switch in types.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/BulkWriteOptions.html" class="tsd-signature-type tsd-kind-interface">BulkWriteOptions</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="OrderedBulkOperation.html" class="tsd-signature-type tsd-kind-class">OrderedBulkOperation</a></h4>
<div class="tsd-comment tsd-typography">
<h4>Throws</h4><p>MongoNotConnectedError</p>

<h4>Remarks</h4><p><strong>NOTE:</strong> MongoClient must be connected prior to calling this method due to a known limitation in this legacy implementation.
However, <code>collection.bulkWrite()</code> provides an equivalent API that does not require prior connecting.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1029">src/collection.ts:1029</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="initializeUnorderedBulkOp" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>initialize<wbr/>Unordered<wbr/>Bulk<wbr/>Op</span><a href="#initializeUnorderedBulkOp" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="initializeUnorderedBulkOp.initializeUnorderedBulkOp-1"><span class="tsd-kind-call-signature">initialize<wbr/>Unordered<wbr/>Bulk<wbr/>Op</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="UnorderedBulkOperation.html" class="tsd-signature-type tsd-kind-class">UnorderedBulkOperation</a><a href="#initializeUnorderedBulkOp.initializeUnorderedBulkOp-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Initiate an Out of order batch write operation. All operations will be buffered into insert/update/remove commands executed out of order.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/BulkWriteOptions.html" class="tsd-signature-type tsd-kind-interface">BulkWriteOptions</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="UnorderedBulkOperation.html" class="tsd-signature-type tsd-kind-class">UnorderedBulkOperation</a></h4>
<div class="tsd-comment tsd-typography">
<h4>Throws</h4><p>MongoNotConnectedError</p>

<h4>Remarks</h4><p><strong>NOTE:</strong> MongoClient must be connected prior to calling this method due to a known limitation in this legacy implementation.
However, <code>collection.bulkWrite()</code> provides an equivalent API that does not require prior connecting.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1017">src/collection.ts:1017</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="insertMany" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>insert<wbr/>Many</span><a href="#insertMany" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="insertMany.insertMany-1"><span class="tsd-kind-call-signature">insert<wbr/>Many</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">docs</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/InsertManyResult.html" class="tsd-signature-type tsd-kind-interface">InsertManyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#insertMany.insertMany-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Inserts an array of documents into MongoDB. If documents passed in do not contain the <strong>_id</strong> field,
one will be added to each of the documents missing it by the driver, mutating the document. This behavior
can be overridden by setting the <strong>forceServerObjectId</strong> flag.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">docs</span>: <a href="../types/OptionalUnlessRequiredId.html" class="tsd-signature-type tsd-kind-type-alias">OptionalUnlessRequiredId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span></h5>
<div class="tsd-comment tsd-typography"><p>The documents to insert</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/BulkWriteOptions.html" class="tsd-signature-type tsd-kind-interface">BulkWriteOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/InsertManyResult.html" class="tsd-signature-type tsd-kind-interface">InsertManyResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L293">src/collection.ts:293</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="insertOne" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>insert<wbr/>One</span><a href="#insertOne" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="insertOne.insertOne-1"><span class="tsd-kind-call-signature">insert<wbr/>One</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">doc</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/InsertOneResult.html" class="tsd-signature-type tsd-kind-interface">InsertOneResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#insertOne.insertOne-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Inserts a single document into MongoDB. If documents passed in do not contain the <strong>_id</strong> field,
one will be added to each of the documents missing it by the driver, mutating the document. This behavior
can be overridden by setting the <strong>forceServerObjectId</strong> flag.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">doc</span>: <a href="../types/OptionalUnlessRequiredId.html" class="tsd-signature-type tsd-kind-type-alias">OptionalUnlessRequiredId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The document to insert</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/InsertOneOptions.html" class="tsd-signature-type tsd-kind-interface">InsertOneOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/InsertOneResult.html" class="tsd-signature-type tsd-kind-interface">InsertOneResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L271">src/collection.ts:271</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="isCapped" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>is<wbr/>Capped</span><a href="#isCapped" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="isCapped.isCapped-1"><span class="tsd-kind-call-signature">is<wbr/>Capped</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span><a href="#isCapped.isCapped-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Returns if the collection is a capped collection</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/OperationOptions.html" class="tsd-signature-type tsd-kind-interface">OperationOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L533">src/collection.ts:533</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="listIndexes" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>list<wbr/>Indexes</span><a href="#listIndexes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="listIndexes.listIndexes-1"><span class="tsd-kind-call-signature">list<wbr/>Indexes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ListIndexesCursor.html" class="tsd-signature-type tsd-kind-class">ListIndexesCursor</a><a href="#listIndexes.listIndexes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Get the list of all indexes information for the collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/ListIndexesOptions.html" class="tsd-signature-type tsd-kind-interface">ListIndexesOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="ListIndexesCursor.html" class="tsd-signature-type tsd-kind-class">ListIndexesCursor</a></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L662">src/collection.ts:662</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="listSearchIndexes" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>list<wbr/>Search<wbr/>Indexes</span><a href="#listSearchIndexes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="listSearchIndexes.listSearchIndexes-1"><span class="tsd-kind-call-signature">list<wbr/>Search<wbr/>Indexes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ListSearchIndexesCursor.html" class="tsd-signature-type tsd-kind-class">ListSearchIndexesCursor</a><a href="#listSearchIndexes.listSearchIndexes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Returns all search indexes for the current collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/AggregateOptions.html" class="tsd-signature-type tsd-kind-interface">AggregateOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>The options for the list indexes operation.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="ListSearchIndexesCursor.html" class="tsd-signature-type tsd-kind-class">ListSearchIndexesCursor</a></h4>
<div class="tsd-comment tsd-typography">
<h4>Remarks</h4><p>Only available when used against a 7.0+ Atlas cluster.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1059">src/collection.ts:1059</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="listSearchIndexes.listSearchIndexes-2"><span class="tsd-kind-call-signature">list<wbr/>Search<wbr/>Indexes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ListSearchIndexesCursor.html" class="tsd-signature-type tsd-kind-class">ListSearchIndexesCursor</a><a href="#listSearchIndexes.listSearchIndexes-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Returns all search indexes for the current collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography"><p>The name of the index to search for.  Only indexes with matching index names will be returned.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/AggregateOptions.html" class="tsd-signature-type tsd-kind-interface">AggregateOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>The options for the list indexes operation.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="ListSearchIndexesCursor.html" class="tsd-signature-type tsd-kind-class">ListSearchIndexesCursor</a></h4>
<div class="tsd-comment tsd-typography">
<h4>Remarks</h4><p>Only available when used against a 7.0+ Atlas cluster.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1068">src/collection.ts:1068</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="options" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>options</span><a href="#options" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="options.options-1"><span class="tsd-kind-call-signature">options</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span><a href="#options.options-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Returns the options of the collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/OperationOptions.html" class="tsd-signature-type tsd-kind-interface">OperationOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L521">src/collection.ts:521</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="rename" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>rename</span><a href="#rename" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="rename.rename-1"><span class="tsd-kind-call-signature">rename</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">newName</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="Collection.html" class="tsd-signature-type tsd-kind-class">Collection</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#rename.rename-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Rename the collection.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">newName</span>: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography"><p>New name of of the collection.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/RenameOptions.html" class="tsd-signature-type tsd-kind-interface">RenameOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="Collection.html" class="tsd-signature-type tsd-kind-class">Collection</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Remarks</h4><p>This operation does not inherit options from the Db or MongoClient.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L454">src/collection.ts:454</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="replaceOne" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>replace<wbr/>One</span><a href="#replaceOne" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="replaceOne.replaceOne-1"><span class="tsd-kind-call-signature">replace<wbr/>One</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">replacement</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/UpdateResult.html" class="tsd-signature-type tsd-kind-interface">UpdateResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#replaceOne.replaceOne-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Replace a document in a collection with another document</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter used to select the document to replace</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">replacement</span>: <a href="../types/WithoutId.html" class="tsd-signature-type tsd-kind-type-alias">WithoutId</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The Document that replaces the matching document</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/ReplaceOptions.html" class="tsd-signature-type tsd-kind-interface">ReplaceOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/UpdateResult.html" class="tsd-signature-type tsd-kind-interface">UpdateResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L374">src/collection.ts:374</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="stats" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>stats</span><a href="#stats" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="stats.stats-1"><span class="tsd-kind-call-signature">stats</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CollStats.html" class="tsd-signature-type tsd-kind-interface">CollStats</a><span class="tsd-signature-symbol">&gt;</span><a href="#stats.stats-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Get all the collection statistics.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/CollStatsOptions.html" class="tsd-signature-type tsd-kind-interface">CollStatsOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CollStats.html" class="tsd-signature-type tsd-kind-interface">CollStats</a><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Deprecated</h4><p>the <code>collStats</code> operation will be removed in the next major release.  Please
use an aggregation pipeline with the <a href="https://www.mongodb.com/docs/manual/reference/operator/aggregation/collStats/"><code>$collStats</code></a> stage instead</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L810">src/collection.ts:810</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="updateMany" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>update<wbr/>Many</span><a href="#updateMany" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="updateMany.updateMany-1"><span class="tsd-kind-call-signature">update<wbr/>Many</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">update</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/UpdateResult.html" class="tsd-signature-type tsd-kind-interface">UpdateResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#updateMany.updateMany-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Update multiple documents in a collection</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter used to select the documents to update</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">update</span>: <a href="../types/UpdateFilter.html" class="tsd-signature-type tsd-kind-type-alias">UpdateFilter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The update operations to be applied to the documents</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/UpdateOptions.html" class="tsd-signature-type tsd-kind-interface">UpdateOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/UpdateResult.html" class="tsd-signature-type tsd-kind-interface">UpdateResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L397">src/collection.ts:397</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="updateOne" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>update<wbr/>One</span><a href="#updateOne" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="updateOne.updateOne-1"><span class="tsd-kind-call-signature">update<wbr/>One</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">filter</span>, <span class="tsd-kind-parameter">update</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/UpdateResult.html" class="tsd-signature-type tsd-kind-interface">UpdateResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#updateOne.updateOne-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Update a single document in a collection</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">filter</span>: <a href="../types/Filter.html" class="tsd-signature-type tsd-kind-type-alias">Filter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The filter used to select the document to update</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">update</span>: <a href="../types/UpdateFilter.html" class="tsd-signature-type tsd-kind-type-alias">UpdateFilter</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type ">Partial</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography"><p>The update operations to be applied to the document</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../interfaces/UpdateOptions.html" class="tsd-signature-type tsd-kind-interface">UpdateOptions</a></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/UpdateResult.html" class="tsd-signature-type tsd-kind-interface">UpdateResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L351">src/collection.ts:351</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="updateSearchIndex" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>update<wbr/>Search<wbr/>Index</span><a href="#updateSearchIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="updateSearchIndex.updateSearchIndex-1"><span class="tsd-kind-call-signature">update<wbr/>Search<wbr/>Index</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span>, <span class="tsd-kind-parameter">definition</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#updateSearchIndex.updateSearchIndex-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Updates a search index by replacing the existing index definition with the provided definition.</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography"><p>The name of the search index to update.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">definition</span>: <a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a></h5>
<div class="tsd-comment tsd-typography"><p>The new search index definition.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Remarks</h4><p>Only available when used against a 7.0+ Atlas cluster.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L1136">src/collection.ts:1136</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="watch" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>watch</span><a href="#watch" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="watch.watch-1"><span class="tsd-kind-call-signature">watch</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TLocal</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">TChange</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pipeline</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ChangeStream.html" class="tsd-signature-type tsd-kind-class">ChangeStream</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TLocal</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">TChange</span><span class="tsd-signature-symbol">&gt;</span><a href="#watch.watch-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Create a new Change Stream, watching for new changes (insertions, updates, replacements, deletions, and invalidations) in this collection.</p>
</div>
<section class="tsd-panel">
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">TLocal</span><span class="tsd-signature-symbol"> extends </span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a> = <span class="tsd-signature-type tsd-kind-type-parameter">TSchema</span></h4>
<div class="tsd-comment tsd-typography"><p>Type of the data being detected by the change stream</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h4><span class="tsd-kind-type-parameter">TChange</span><span class="tsd-signature-symbol"> extends </span><a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a> = <a href="../types/ChangeStreamDocument.html" class="tsd-signature-type tsd-kind-type-alias">ChangeStreamDocument</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TLocal</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"><p>Type of the whole change stream document emitted</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">pipeline</span>: <a href="../interfaces/BSON.Document.html" class="tsd-signature-type tsd-kind-interface">Document</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5>
<div class="tsd-comment tsd-typography"><p>An array of <a href="https://www.mongodb.com/docs/manual/reference/operator/aggregation-pipeline/|aggregation">pipeline stages</a> through which to pass change stream documents. This allows for filtering (using $match) and manipulating the change stream documents.</p>
</div>
<div class="tsd-comment tsd-typography"></div></li>
<li>
<h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/ChangeStreamOptions.html" class="tsd-signature-type tsd-kind-interface">ChangeStreamOptions</a><span class="tsd-signature-symbol"> = {}</span></h5>
<div class="tsd-comment tsd-typography"><p>Optional settings for the command</p>
</div>
<div class="tsd-comment tsd-typography"></div></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="ChangeStream.html" class="tsd-signature-type tsd-kind-class">ChangeStream</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TLocal</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">TChange</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography">
<h4>Remarks</h4><p>watch() accepts two generic arguments for distinct use cases:</p>
<ul>
<li>The first is to override the schema that may be defined for this specific collection</li>
<li>The second is to override the shape of the change stream document entirely, if it is not provided the type will default to ChangeStreamDocument of the first argument</li>
</ul>

<h4>Example</h4><p>By just providing the first argument I can type the change to be <code>ChangeStreamDocument&lt;{ _id: number }&gt;</code></p>
<pre><code class="language-ts"><span class="hl-6">collection</span><span class="hl-1">.</span><span class="hl-0">watch</span><span class="hl-1">&lt;{ </span><span class="hl-6">_id</span><span class="hl-1">: </span><span class="hl-9">number</span><span class="hl-1"> }&gt;()</span><br/><span class="hl-1">  .</span><span class="hl-0">on</span><span class="hl-1">(</span><span class="hl-2">&#39;change&#39;</span><span class="hl-1">, </span><span class="hl-6">change</span><span class="hl-1"> </span><span class="hl-4">=&gt;</span><span class="hl-1"> </span><span class="hl-6">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-6">change</span><span class="hl-1">.</span><span class="hl-6">_id</span><span class="hl-1">.</span><span class="hl-0">toFixed</span><span class="hl-1">(</span><span class="hl-8">4</span><span class="hl-1">)));</span>
</code><button>Copy</button></pre>

<h4>Example</h4><p>Passing a second argument provides a way to reflect the type changes caused by an advanced pipeline.
Here, we are using a pipeline to have MongoDB filter for insert changes only and add a comment.
No need start from scratch on the ChangeStreamInsertDocument type!
By using an intersection we can save time and ensure defaults remain the same type!</p>
<pre><code class="language-ts"><span class="hl-6">collection</span><br/><span class="hl-1">  .</span><span class="hl-0">watch</span><span class="hl-1">&lt;</span><span class="hl-9">Schema</span><span class="hl-1">, </span><span class="hl-9">ChangeStreamInsertDocument</span><span class="hl-1">&lt;</span><span class="hl-9">Schema</span><span class="hl-1">&gt; &amp; { </span><span class="hl-6">comment</span><span class="hl-1">: </span><span class="hl-9">string</span><span class="hl-1"> }&gt;([</span><br/><span class="hl-1">    { </span><span class="hl-6">$addFields:</span><span class="hl-1"> { </span><span class="hl-6">comment:</span><span class="hl-1"> </span><span class="hl-2">&#39;big changes&#39;</span><span class="hl-1"> } },</span><br/><span class="hl-1">    { </span><span class="hl-6">$match:</span><span class="hl-1"> { </span><span class="hl-6">operationType:</span><span class="hl-1"> </span><span class="hl-2">&#39;insert&#39;</span><span class="hl-1"> } }</span><br/><span class="hl-1">  ])</span><br/><span class="hl-1">  .</span><span class="hl-0">on</span><span class="hl-1">(</span><span class="hl-2">&#39;change&#39;</span><span class="hl-1">, </span><span class="hl-6">change</span><span class="hl-1"> </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1">    </span><span class="hl-6">change</span><span class="hl-1">.</span><span class="hl-6">comment</span><span class="hl-1">.</span><span class="hl-0">startsWith</span><span class="hl-1">(</span><span class="hl-2">&#39;big&#39;</span><span class="hl-1">);</span><br/><span class="hl-1">    </span><span class="hl-6">change</span><span class="hl-1">.</span><span class="hl-6">operationType</span><span class="hl-1"> === </span><span class="hl-2">&#39;insert&#39;</span><span class="hl-1">;</span><br/><span class="hl-1">    </span><span class="hl-3">// No need to narrow in code because the generics did that for us!</span><br/><span class="hl-1">    </span><span class="hl-0">expectType</span><span class="hl-1">&lt;</span><span class="hl-9">Schema</span><span class="hl-1">&gt;(</span><span class="hl-6">change</span><span class="hl-1">.</span><span class="hl-6">fullDocument</span><span class="hl-1">);</span><br/><span class="hl-1">  });</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mongodb/node-mongodb-native/blob/v5.7.0/src/collection.ts#L996">src/collection.ts:996</a></li></ul></aside></li></ul></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
<div class="tsd-accordion-details">
<div class="tsd-filter-visibility">
<h4 class="uppercase">Member Visibility</h4><form>
<ul id="tsd-filter-options">
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li>
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
<div class="tsd-theme-toggle">
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
<div class="tsd-accordion-details">
<ul>
<li><a href="#bsonOptions" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>bson<wbr/>Options</span></a></li>
<li><a href="#collectionName" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>collection<wbr/>Name</span></a></li>
<li><a href="#dbName" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>db<wbr/>Name</span></a></li>
<li><a href="#hint" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>hint</span></a></li>
<li><a href="#namespace" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>namespace</span></a></li>
<li><a href="#readConcern" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>read<wbr/>Concern</span></a></li>
<li><a href="#readPreference" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>read<wbr/>Preference</span></a></li>
<li><a href="#writeConcern" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>write<wbr/>Concern</span></a></li>
<li><a href="#aggregate" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>aggregate</span></a></li>
<li><a href="#bulkWrite" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>bulk<wbr/>Write</span></a></li>
<li><a href="#count" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>count</span></a></li>
<li><a href="#countDocuments" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>count<wbr/>Documents</span></a></li>
<li><a href="#createIndex" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Index</span></a></li>
<li><a href="#createIndexes" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Indexes</span></a></li>
<li><a href="#createSearchIndex" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Search<wbr/>Index</span></a></li>
<li><a href="#createSearchIndexes" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Search<wbr/>Indexes</span></a></li>
<li><a href="#deleteMany" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>delete<wbr/>Many</span></a></li>
<li><a href="#deleteOne" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>delete<wbr/>One</span></a></li>
<li><a href="#distinct" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>distinct</span></a></li>
<li><a href="#drop" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>drop</span></a></li>
<li><a href="#dropIndex" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>drop<wbr/>Index</span></a></li>
<li><a href="#dropIndexes" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>drop<wbr/>Indexes</span></a></li>
<li><a href="#dropSearchIndex" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>drop<wbr/>Search<wbr/>Index</span></a></li>
<li><a href="#estimatedDocumentCount" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>estimated<wbr/>Document<wbr/>Count</span></a></li>
<li><a href="#find" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find</span></a></li>
<li><a href="#findOne" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>One</span></a></li>
<li><a href="#findOneAndDelete" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>One<wbr/>And<wbr/>Delete</span></a></li>
<li><a href="#findOneAndReplace" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>One<wbr/>And<wbr/>Replace</span></a></li>
<li><a href="#findOneAndUpdate" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>One<wbr/>And<wbr/>Update</span></a></li>
<li><a href="#indexExists" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>index<wbr/>Exists</span></a></li>
<li><a href="#indexInformation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>index<wbr/>Information</span></a></li>
<li><a href="#indexes" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>indexes</span></a></li>
<li><a href="#initializeOrderedBulkOp" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>initialize<wbr/>Ordered<wbr/>Bulk<wbr/>Op</span></a></li>
<li><a href="#initializeUnorderedBulkOp" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>initialize<wbr/>Unordered<wbr/>Bulk<wbr/>Op</span></a></li>
<li><a href="#insertMany" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>insert<wbr/>Many</span></a></li>
<li><a href="#insertOne" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>insert<wbr/>One</span></a></li>
<li><a href="#isCapped" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>is<wbr/>Capped</span></a></li>
<li><a href="#listIndexes" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>list<wbr/>Indexes</span></a></li>
<li><a href="#listSearchIndexes" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>list<wbr/>Search<wbr/>Indexes</span></a></li>
<li><a href="#options" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>options</span></a></li>
<li><a href="#rename" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>rename</span></a></li>
<li><a href="#replaceOne" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>replace<wbr/>One</span></a></li>
<li><a href="#stats" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>stats</span></a></li>
<li><a href="#updateMany" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>update<wbr/>Many</span></a></li>
<li><a href="#updateOne" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>update<wbr/>One</span></a></li>
<li><a href="#updateSearchIndex" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>update<wbr/>Search<wbr/>Index</span></a></li>
<li><a href="#watch" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>watch</span></a></li></ul></div></details></div>
<div class="site-menu">
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>mongodb</span></a>
<ul class="tsd-small-nested-navigation">
<li><a href="../modules.html#BSONRegExp"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8388608"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g></svg><span>BSONReg<wbr/>Exp</span></a></li>
<li><a href="../modules.html#BSONSymbol"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>BSONSymbol</span></a></li>
<li><a href="../modules.html#BSONType"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>BSONType</span></a></li>
<li><a href="../modules.html#Binary"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Binary</span></a></li>
<li><a href="../modules.html#Code"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Code</span></a></li>
<li><a href="../modules.html#DBRef"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>DBRef</span></a></li>
<li><a href="../modules.html#Decimal128"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Decimal128</span></a></li>
<li><a href="../modules.html#Document"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Document</span></a></li>
<li><a href="../modules.html#Double"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Double</span></a></li>
<li><a href="../modules.html#Int32"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Int32</span></a></li>
<li><a href="../modules.html#Long"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Long</span></a></li>
<li><a href="../modules.html#MaxKey"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Max<wbr/>Key</span></a></li>
<li><a href="../modules.html#MinKey"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Min<wbr/>Key</span></a></li>
<li><a href="../modules.html#ObjectId"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Object<wbr/>Id</span></a></li>
<li><a href="../modules.html#Timestamp"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Timestamp</span></a></li>
<li><a href="../modules.html#deserialize"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>deserialize</span></a></li>
<li><a href="../modules.html#serialize"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>serialize</span></a></li>
<li><a href="../modules/BSON.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>BSON</span></a></li>
<li><a href="AbstractCursor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>Abstract<wbr/>Cursor</span></a></li>
<li><a href="Admin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Admin</span></a></li>
<li><a href="AggregationCursor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Aggregation<wbr/>Cursor</span></a></li>
<li><a href="Batch.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Batch</span></a></li>
<li><a href="BulkOperationBase.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Bulk<wbr/>Operation<wbr/>Base</span></a></li>
<li><a href="BulkWriteResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Bulk<wbr/>Write<wbr/>Result</span></a></li>
<li><a href="CancellationToken.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Cancellation<wbr/>Token</span></a></li>
<li><a href="ChangeStream.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Change<wbr/>Stream</span></a></li>
<li><a href="ClientSession.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Client<wbr/>Session</span></a></li>
<li><a href="Collection.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Collection</span></a></li>
<li><a href="CommandFailedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Command<wbr/>Failed<wbr/>Event</span></a></li>
<li><a href="CommandStartedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Command<wbr/>Started<wbr/>Event</span></a></li>
<li><a href="CommandSucceededEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Command<wbr/>Succeeded<wbr/>Event</span></a></li>
<li><a href="ConnectionCheckOutFailedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Check<wbr/>Out<wbr/>Failed<wbr/>Event</span></a></li>
<li><a href="ConnectionCheckOutStartedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Check<wbr/>Out<wbr/>Started<wbr/>Event</span></a></li>
<li><a href="ConnectionCheckedInEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Checked<wbr/>In<wbr/>Event</span></a></li>
<li><a href="ConnectionCheckedOutEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Checked<wbr/>Out<wbr/>Event</span></a></li>
<li><a href="ConnectionClosedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Closed<wbr/>Event</span></a></li>
<li><a href="ConnectionCreatedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Created<wbr/>Event</span></a></li>
<li><a href="ConnectionPoolClearedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Pool<wbr/>Cleared<wbr/>Event</span></a></li>
<li><a href="ConnectionPoolClosedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Pool<wbr/>Closed<wbr/>Event</span></a></li>
<li><a href="ConnectionPoolCreatedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Pool<wbr/>Created<wbr/>Event</span></a></li>
<li><a href="ConnectionPoolMonitoringEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Pool<wbr/>Monitoring<wbr/>Event</span></a></li>
<li><a href="ConnectionPoolReadyEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Pool<wbr/>Ready<wbr/>Event</span></a></li>
<li><a href="ConnectionReadyEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Connection<wbr/>Ready<wbr/>Event</span></a></li>
<li><a href="Db.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Db</span></a></li>
<li><a href="FindCursor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Find<wbr/>Cursor</span></a></li>
<li><a href="FindOperators.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Find<wbr/>Operators</span></a></li>
<li><a href="GridFSBucket.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>GridFSBucket</span></a></li>
<li><a href="GridFSBucketReadStream.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>GridFSBucket<wbr/>Read<wbr/>Stream</span></a></li>
<li><a href="GridFSBucketWriteStream.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>GridFSBucket<wbr/>Write<wbr/>Stream</span></a></li>
<li><a href="HostAddress.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Host<wbr/>Address</span></a></li>
<li><a href="ListCollectionsCursor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>List<wbr/>Collections<wbr/>Cursor</span></a></li>
<li><a href="ListIndexesCursor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>List<wbr/>Indexes<wbr/>Cursor</span></a></li>
<li><a href="ListSearchIndexesCursor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>List<wbr/>Search<wbr/>Indexes<wbr/>Cursor</span></a></li>
<li><a href="MongoAPIError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>MongoAPIError</span></a></li>
<li><a href="MongoAWSError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>MongoAWSError</span></a></li>
<li><a href="MongoAzureError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Azure<wbr/>Error</span></a></li>
<li><a href="MongoBatchReExecutionError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Batch<wbr/>Re<wbr/>Execution<wbr/>Error</span></a></li>
<li><a href="MongoBulkWriteError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Bulk<wbr/>Write<wbr/>Error</span></a></li>
<li><a href="MongoChangeStreamError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Change<wbr/>Stream<wbr/>Error</span></a></li>
<li><a href="MongoClient.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Client</span></a></li>
<li><a href="MongoCompatibilityError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Compatibility<wbr/>Error</span></a></li>
<li><a href="MongoCredentials.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Credentials</span></a></li>
<li><a href="MongoCursorExhaustedError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Cursor<wbr/>Exhausted<wbr/>Error</span></a></li>
<li><a href="MongoCursorInUseError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Cursor<wbr/>In<wbr/>Use<wbr/>Error</span></a></li>
<li><a href="MongoDBCollectionNamespace.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>MongoDBCollection<wbr/>Namespace</span></a></li>
<li><a href="MongoDBNamespace.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>MongoDBNamespace</span></a></li>
<li><a href="MongoDecompressionError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Decompression<wbr/>Error</span></a></li>
<li><a href="MongoDriverError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Driver<wbr/>Error</span></a></li>
<li><a href="MongoError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Error</span></a></li>
<li><a href="MongoExpiredSessionError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Expired<wbr/>Session<wbr/>Error</span></a></li>
<li><a href="MongoGridFSChunkError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>GridFSChunk<wbr/>Error</span></a></li>
<li><a href="MongoGridFSStreamError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>GridFSStream<wbr/>Error</span></a></li>
<li><a href="MongoInvalidArgumentError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Invalid<wbr/>Argument<wbr/>Error</span></a></li>
<li><a href="MongoKerberosError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Kerberos<wbr/>Error</span></a></li>
<li><a href="MongoMissingCredentialsError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Missing<wbr/>Credentials<wbr/>Error</span></a></li>
<li><a href="MongoMissingDependencyError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Missing<wbr/>Dependency<wbr/>Error</span></a></li>
<li><a href="MongoNetworkError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Network<wbr/>Error</span></a></li>
<li><a href="MongoNetworkTimeoutError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Network<wbr/>Timeout<wbr/>Error</span></a></li>
<li><a href="MongoNotConnectedError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Not<wbr/>Connected<wbr/>Error</span></a></li>
<li><a href="MongoParseError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Parse<wbr/>Error</span></a></li>
<li><a href="MongoRuntimeError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Runtime<wbr/>Error</span></a></li>
<li><a href="MongoServerClosedError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Server<wbr/>Closed<wbr/>Error</span></a></li>
<li><a href="MongoServerError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Server<wbr/>Error</span></a></li>
<li><a href="MongoServerSelectionError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Server<wbr/>Selection<wbr/>Error</span></a></li>
<li><a href="MongoSystemError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>System<wbr/>Error</span></a></li>
<li><a href="MongoTailableCursorError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Tailable<wbr/>Cursor<wbr/>Error</span></a></li>
<li><a href="MongoTopologyClosedError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Topology<wbr/>Closed<wbr/>Error</span></a></li>
<li><a href="MongoTransactionError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Transaction<wbr/>Error</span></a></li>
<li><a href="MongoUnexpectedServerResponseError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Unexpected<wbr/>Server<wbr/>Response<wbr/>Error</span></a></li>
<li><a href="MongoWriteConcernError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Mongo<wbr/>Write<wbr/>Concern<wbr/>Error</span></a></li>
<li><a href="OrderedBulkOperation.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Ordered<wbr/>Bulk<wbr/>Operation</span></a></li>
<li><a href="ReadConcern.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Read<wbr/>Concern</span></a></li>
<li><a href="ReadPreference.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Read<wbr/>Preference</span></a></li>
<li><a href="RunCommandCursor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Run<wbr/>Command<wbr/>Cursor</span></a></li>
<li><a href="ServerCapabilities.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Capabilities</span></a></li>
<li><a href="ServerClosedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Closed<wbr/>Event</span></a></li>
<li><a href="ServerDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Description</span></a></li>
<li><a href="ServerDescriptionChangedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Description<wbr/>Changed<wbr/>Event</span></a></li>
<li><a href="ServerHeartbeatFailedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Heartbeat<wbr/>Failed<wbr/>Event</span></a></li>
<li><a href="ServerHeartbeatStartedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Heartbeat<wbr/>Started<wbr/>Event</span></a></li>
<li><a href="ServerHeartbeatSucceededEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Heartbeat<wbr/>Succeeded<wbr/>Event</span></a></li>
<li><a href="ServerOpeningEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Opening<wbr/>Event</span></a></li>
<li><a href="ServerSession.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Server<wbr/>Session</span></a></li>
<li><a href="StreamDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Stream<wbr/>Description</span></a></li>
<li><a href="TopologyClosedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Topology<wbr/>Closed<wbr/>Event</span></a></li>
<li><a href="TopologyDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Topology<wbr/>Description</span></a></li>
<li><a href="TopologyDescriptionChangedEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Topology<wbr/>Description<wbr/>Changed<wbr/>Event</span></a></li>
<li><a href="TopologyOpeningEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Topology<wbr/>Opening<wbr/>Event</span></a></li>
<li><a href="Transaction.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Transaction</span></a></li>
<li><a href="TypedEventEmitter.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Typed<wbr/>Event<wbr/>Emitter</span></a></li>
<li><a href="UnorderedBulkOperation.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Unordered<wbr/>Bulk<wbr/>Operation</span></a></li>
<li><a href="WriteConcern.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Write<wbr/>Concern</span></a></li>
<li><a href="WriteConcernError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Write<wbr/>Concern<wbr/>Error</span></a></li>
<li><a href="WriteError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Write<wbr/>Error</span></a></li>
<li><a href="../interfaces/AbstractCursorOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g></svg><span>Abstract<wbr/>Cursor<wbr/>Options</span></a></li>
<li><a href="../interfaces/AddUserOptions.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Add<wbr/>User<wbr/>Options</span></a></li>
<li><a href="../interfaces/AggregateOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Aggregate<wbr/>Options</span></a></li>
<li><a href="../interfaces/AggregationCursorOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Aggregation<wbr/>Cursor<wbr/>Options</span></a></li>
<li><a href="../interfaces/Auth.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Auth</span></a></li>
<li><a href="../interfaces/AuthMechanismProperties.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Auth<wbr/>Mechanism<wbr/>Properties</span></a></li>
<li><a href="../interfaces/AutoEncrypter.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Auto<wbr/>Encrypter</span></a></li>
<li><a href="../interfaces/AutoEncryptionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Auto<wbr/>Encryption<wbr/>Options</span></a></li>
<li><a href="../interfaces/AutoEncryptionTlsOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Auto<wbr/>Encryption<wbr/>Tls<wbr/>Options</span></a></li>
<li><a href="../interfaces/BSONSerializeOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>BSONSerialize<wbr/>Options</span></a></li>
<li><a href="../interfaces/BulkWriteOperationError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Bulk<wbr/>Write<wbr/>Operation<wbr/>Error</span></a></li>
<li><a href="../interfaces/BulkWriteOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Bulk<wbr/>Write<wbr/>Options</span></a></li>
<li><a href="../interfaces/ChangeStreamCollModDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Coll<wbr/>Mod<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamCreateDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Create<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamCreateIndexDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Create<wbr/>Index<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamDeleteDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Delete<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamDocumentCollectionUUID.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Document<wbr/>CollectionUUID</span></a></li>
<li><a href="../interfaces/ChangeStreamDocumentCommon.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Document<wbr/>Common</span></a></li>
<li><a href="../interfaces/ChangeStreamDocumentKey.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Document<wbr/>Key</span></a></li>
<li><a href="../interfaces/ChangeStreamDocumentOperationDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Document<wbr/>Operation<wbr/>Description</span></a></li>
<li><a href="../interfaces/ChangeStreamDropDatabaseDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Drop<wbr/>Database<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamDropDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Drop<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamDropIndexDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Drop<wbr/>Index<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamInsertDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Insert<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamInvalidateDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Invalidate<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamNameSpace.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Name<wbr/>Space</span></a></li>
<li><a href="../interfaces/ChangeStreamOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Options</span></a></li>
<li><a href="../interfaces/ChangeStreamRefineCollectionShardKeyDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Refine<wbr/>Collection<wbr/>Shard<wbr/>Key<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamRenameDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Rename<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamReplaceDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Replace<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamReshardCollectionDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Reshard<wbr/>Collection<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamShardCollectionDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Shard<wbr/>Collection<wbr/>Document</span></a></li>
<li><a href="../interfaces/ChangeStreamSplitEvent.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Split<wbr/>Event</span></a></li>
<li><a href="../interfaces/ChangeStreamUpdateDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Change<wbr/>Stream<wbr/>Update<wbr/>Document</span></a></li>
<li><a href="../interfaces/ClientMetadata.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Client<wbr/>Metadata</span></a></li>
<li><a href="../interfaces/ClientMetadataOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Client<wbr/>Metadata<wbr/>Options</span></a></li>
<li><a href="../interfaces/ClientSessionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Client<wbr/>Session<wbr/>Options</span></a></li>
<li><a href="../interfaces/CloseOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Close<wbr/>Options</span></a></li>
<li><a href="../interfaces/ClusterTime.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Cluster<wbr/>Time</span></a></li>
<li><a href="../interfaces/ClusteredCollectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Clustered<wbr/>Collection<wbr/>Options</span></a></li>
<li><a href="../interfaces/CollStats.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Coll<wbr/>Stats</span></a></li>
<li><a href="../interfaces/CollStatsOptions.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Coll<wbr/>Stats<wbr/>Options</span></a></li>
<li><a href="../interfaces/CollationOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Collation<wbr/>Options</span></a></li>
<li><a href="../interfaces/CollectionInfo.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Collection<wbr/>Info</span></a></li>
<li><a href="../interfaces/CollectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Collection<wbr/>Options</span></a></li>
<li><a href="../interfaces/CommandOperationOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Command<wbr/>Operation<wbr/>Options</span></a></li>
<li><a href="../interfaces/ConnectOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Connect<wbr/>Options</span></a></li>
<li><a href="../interfaces/ConnectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Connection<wbr/>Options</span></a></li>
<li><a href="../interfaces/ConnectionPoolOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Connection<wbr/>Pool<wbr/>Options</span></a></li>
<li><a href="../interfaces/CountDocumentsOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Count<wbr/>Documents<wbr/>Options</span></a></li>
<li><a href="../interfaces/CountOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Count<wbr/>Options</span></a></li>
<li><a href="../interfaces/CreateCollectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Create<wbr/>Collection<wbr/>Options</span></a></li>
<li><a href="../interfaces/CreateIndexesOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Create<wbr/>Indexes<wbr/>Options</span></a></li>
<li><a href="../interfaces/CursorStreamOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Cursor<wbr/>Stream<wbr/>Options</span></a></li>
<li><a href="../interfaces/DbOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Db<wbr/>Options</span></a></li>
<li><a href="../interfaces/DbStatsOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Db<wbr/>Stats<wbr/>Options</span></a></li>
<li><a href="../interfaces/DeleteManyModel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Delete<wbr/>Many<wbr/>Model</span></a></li>
<li><a href="../interfaces/DeleteOneModel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Delete<wbr/>One<wbr/>Model</span></a></li>
<li><a href="../interfaces/DeleteOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Delete<wbr/>Options</span></a></li>
<li><a href="../interfaces/DeleteResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Delete<wbr/>Result</span></a></li>
<li><a href="../interfaces/DeleteStatement.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Delete<wbr/>Statement</span></a></li>
<li><a href="../interfaces/DriverInfo.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Driver<wbr/>Info</span></a></li>
<li><a href="../interfaces/DropCollectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Drop<wbr/>Collection<wbr/>Options</span></a></li>
<li><a href="../interfaces/EndSessionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>End<wbr/>Session<wbr/>Options</span></a></li>
<li><a href="../interfaces/ErrorDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Error<wbr/>Description</span></a></li>
<li><a href="../interfaces/EstimatedDocumentCountOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Estimated<wbr/>Document<wbr/>Count<wbr/>Options</span></a></li>
<li><a href="../interfaces/EvalOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Eval<wbr/>Options</span></a></li>
<li><a href="../interfaces/ExplainOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Explain<wbr/>Options</span></a></li>
<li><a href="../interfaces/FilterOperators.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Filter<wbr/>Operators</span></a></li>
<li><a href="../interfaces/FindOneAndDeleteOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Find<wbr/>One<wbr/>And<wbr/>Delete<wbr/>Options</span></a></li>
<li><a href="../interfaces/FindOneAndReplaceOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Find<wbr/>One<wbr/>And<wbr/>Replace<wbr/>Options</span></a></li>
<li><a href="../interfaces/FindOneAndUpdateOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Find<wbr/>One<wbr/>And<wbr/>Update<wbr/>Options</span></a></li>
<li><a href="../interfaces/FindOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Find<wbr/>Options</span></a></li>
<li><a href="../interfaces/GridFSBucketOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>GridFSBucket<wbr/>Options</span></a></li>
<li><a href="../interfaces/GridFSBucketReadStreamOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>GridFSBucket<wbr/>Read<wbr/>Stream<wbr/>Options</span></a></li>
<li><a href="../interfaces/GridFSBucketReadStreamOptionsWithRevision.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>GridFSBucket<wbr/>Read<wbr/>Stream<wbr/>Options<wbr/>With<wbr/>Revision</span></a></li>
<li><a href="../interfaces/GridFSBucketWriteStreamOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>GridFSBucket<wbr/>Write<wbr/>Stream<wbr/>Options</span></a></li>
<li><a href="../interfaces/GridFSChunk.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>GridFSChunk</span></a></li>
<li><a href="../interfaces/GridFSFile.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>GridFSFile</span></a></li>
<li><a href="../interfaces/HedgeOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Hedge<wbr/>Options</span></a></li>
<li><a href="../interfaces/IdPServerInfo.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IdPServer<wbr/>Info</span></a></li>
<li><a href="../interfaces/IdPServerResponse.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IdPServer<wbr/>Response</span></a></li>
<li><a href="../interfaces/IndexDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Index<wbr/>Description</span></a></li>
<li><a href="../interfaces/IndexInformationOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Index<wbr/>Information<wbr/>Options</span></a></li>
<li><a href="../interfaces/InsertManyResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Insert<wbr/>Many<wbr/>Result</span></a></li>
<li><a href="../interfaces/InsertOneModel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Insert<wbr/>One<wbr/>Model</span></a></li>
<li><a href="../interfaces/InsertOneOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Insert<wbr/>One<wbr/>Options</span></a></li>
<li><a href="../interfaces/InsertOneResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Insert<wbr/>One<wbr/>Result</span></a></li>
<li><a href="../interfaces/ListCollectionsOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>List<wbr/>Collections<wbr/>Options</span></a></li>
<li><a href="../interfaces/ListDatabasesOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>List<wbr/>Databases<wbr/>Options</span></a></li>
<li><a href="../interfaces/ListDatabasesResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>List<wbr/>Databases<wbr/>Result</span></a></li>
<li><a href="../interfaces/ListIndexesOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>List<wbr/>Indexes<wbr/>Options</span></a></li>
<li><a href="../interfaces/ModifyResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Modify<wbr/>Result</span></a></li>
<li><a href="../interfaces/MongoClientOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Mongo<wbr/>Client<wbr/>Options</span></a></li>
<li><a href="../interfaces/MongoCredentialsOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Mongo<wbr/>Credentials<wbr/>Options</span></a></li>
<li><a href="../interfaces/MongoNetworkErrorOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Mongo<wbr/>Network<wbr/>Error<wbr/>Options</span></a></li>
<li><a href="../interfaces/MongoOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Mongo<wbr/>Options</span></a></li>
<li><a href="../interfaces/MonitorOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Monitor<wbr/>Options</span></a></li>
<li><a href="../interfaces/OIDCCallbackContext.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>OIDCCallback<wbr/>Context</span></a></li>
<li><a href="../interfaces/OperationOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Operation<wbr/>Options</span></a></li>
<li><a href="../interfaces/PkFactory.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Pk<wbr/>Factory</span></a></li>
<li><a href="../interfaces/ProxyOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Proxy<wbr/>Options</span></a></li>
<li><a href="../interfaces/ReadPreferenceFromOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Read<wbr/>Preference<wbr/>From<wbr/>Options</span></a></li>
<li><a href="../interfaces/ReadPreferenceLikeOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Read<wbr/>Preference<wbr/>Like<wbr/>Options</span></a></li>
<li><a href="../interfaces/ReadPreferenceOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Read<wbr/>Preference<wbr/>Options</span></a></li>
<li><a href="../interfaces/RenameOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Rename<wbr/>Options</span></a></li>
<li><a href="../interfaces/ReplaceOneModel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Replace<wbr/>One<wbr/>Model</span></a></li>
<li><a href="../interfaces/ReplaceOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Replace<wbr/>Options</span></a></li>
<li><a href="../interfaces/ResumeOptions.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Resume<wbr/>Options</span></a></li>
<li><a href="../interfaces/RoleSpecification.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Role<wbr/>Specification</span></a></li>
<li><a href="../interfaces/RootFilterOperators.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Root<wbr/>Filter<wbr/>Operators</span></a></li>
<li><a href="../interfaces/SearchIndexDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Search<wbr/>Index<wbr/>Description</span></a></li>
<li><a href="../interfaces/SelectServerOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Select<wbr/>Server<wbr/>Options</span></a></li>
<li><a href="../interfaces/ServerApi.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Server<wbr/>Api</span></a></li>
<li><a href="../interfaces/StreamDescriptionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Stream<wbr/>Description<wbr/>Options</span></a></li>
<li><a href="../interfaces/TimeSeriesCollectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Time<wbr/>Series<wbr/>Collection<wbr/>Options</span></a></li>
<li><a href="../interfaces/TopologyDescriptionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Topology<wbr/>Description<wbr/>Options</span></a></li>
<li><a href="../interfaces/TopologyVersion.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Topology<wbr/>Version</span></a></li>
<li><a href="../interfaces/TransactionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Transaction<wbr/>Options</span></a></li>
<li><a href="../interfaces/UpdateDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Update<wbr/>Description</span></a></li>
<li><a href="../interfaces/UpdateManyModel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Update<wbr/>Many<wbr/>Model</span></a></li>
<li><a href="../interfaces/UpdateOneModel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Update<wbr/>One<wbr/>Model</span></a></li>
<li><a href="../interfaces/UpdateOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Update<wbr/>Options</span></a></li>
<li><a href="../interfaces/UpdateResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Update<wbr/>Result</span></a></li>
<li><a href="../interfaces/UpdateStatement.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Update<wbr/>Statement</span></a></li>
<li><a href="../interfaces/ValidateCollectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Validate<wbr/>Collection<wbr/>Options</span></a></li>
<li><a href="../interfaces/WiredTigerData.html" class="deprecated"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Wired<wbr/>Tiger<wbr/>Data</span></a></li>
<li><a href="../interfaces/WriteConcernErrorData.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Write<wbr/>Concern<wbr/>Error<wbr/>Data</span></a></li>
<li><a href="../interfaces/WriteConcernOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Write<wbr/>Concern<wbr/>Options</span></a></li>
<li><a href="../interfaces/WriteConcernSettings.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>Write<wbr/>Concern<wbr/>Settings</span></a></li>
<li><a href="../types/AbstractCursorEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Abstract<wbr/>Cursor<wbr/>Events</span></a></li>
<li><a href="../types/AcceptedFields.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Accepted<wbr/>Fields</span></a></li>
<li><a href="../types/AddToSetOperators.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Add<wbr/>To<wbr/>Set<wbr/>Operators</span></a></li>
<li><a href="../types/AlternativeType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Alternative<wbr/>Type</span></a></li>
<li><a href="../types/AnyBulkWriteOperation.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Any<wbr/>Bulk<wbr/>Write<wbr/>Operation</span></a></li>
<li><a href="../types/AnyError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Any<wbr/>Error</span></a></li>
<li><a href="../types/ArrayElement.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Array<wbr/>Element</span></a></li>
<li><a href="../types/ArrayOperator.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Array<wbr/>Operator</span></a></li>
<li><a href="../types/AuthMechanism.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Auth<wbr/>Mechanism</span></a></li>
<li><a href="../types/AutoEncryptionLoggerLevel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Auto<wbr/>Encryption<wbr/>Logger<wbr/>Level</span></a></li>
<li><a href="../types/BSONTypeAlias.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>BSONType<wbr/>Alias</span></a></li>
<li><a href="../types/BatchType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Batch<wbr/>Type</span></a></li>
<li><a href="../types/BitwiseFilter.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Bitwise<wbr/>Filter</span></a></li>
<li><a href="../types/Callback.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Callback</span></a></li>
<li><a href="../types/ChangeStreamDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Change<wbr/>Stream<wbr/>Document</span></a></li>
<li><a href="../types/ChangeStreamEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Change<wbr/>Stream<wbr/>Events</span></a></li>
<li><a href="../types/ClientSessionEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Client<wbr/>Session<wbr/>Events</span></a></li>
<li><a href="../types/CommonEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Common<wbr/>Events</span></a></li>
<li><a href="../types/Compressor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Compressor</span></a></li>
<li><a href="../types/CompressorName.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Compressor<wbr/>Name</span></a></li>
<li><a href="../types/Condition.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Condition</span></a></li>
<li><a href="../types/ConnectionEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Connection<wbr/>Events</span></a></li>
<li><a href="../types/ConnectionPoolEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Connection<wbr/>Pool<wbr/>Events</span></a></li>
<li><a href="../types/CursorFlag.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Cursor<wbr/>Flag</span></a></li>
<li><a href="../types/DistinctOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Distinct<wbr/>Options</span></a></li>
<li><a href="../types/DropDatabaseOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Drop<wbr/>Database<wbr/>Options</span></a></li>
<li><a href="../types/DropIndexesOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Drop<wbr/>Indexes<wbr/>Options</span></a></li>
<li><a href="../types/EnhancedOmit.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Enhanced<wbr/>Omit</span></a></li>
<li><a href="../types/EventEmitterWithState.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Event<wbr/>Emitter<wbr/>With<wbr/>State</span></a></li>
<li><a href="../types/EventsDescription.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Events<wbr/>Description</span></a></li>
<li><a href="../types/ExplainVerbosity.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Explain<wbr/>Verbosity</span></a></li>
<li><a href="../types/ExplainVerbosityLike.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Explain<wbr/>Verbosity<wbr/>Like</span></a></li>
<li><a href="../types/Filter.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Filter</span></a></li>
<li><a href="../types/FilterOperations.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Filter<wbr/>Operations</span></a></li>
<li><a href="../types/Flatten.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Flatten</span></a></li>
<li><a href="../types/GSSAPICanonicalizationValue.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>GSSAPICanonicalization<wbr/>Value</span></a></li>
<li><a href="../types/GenericListener.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Generic<wbr/>Listener</span></a></li>
<li><a href="../types/GridFSBucketEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>GridFSBucket<wbr/>Events</span></a></li>
<li><a href="../types/Hint.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Hint</span></a></li>
<li><a href="../types/IndexDirection.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Index<wbr/>Direction</span></a></li>
<li><a href="../types/IndexSpecification.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Index<wbr/>Specification</span></a></li>
<li><a href="../types/InferIdType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Infer<wbr/>Id<wbr/>Type</span></a></li>
<li><a href="../types/IntegerType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Integer<wbr/>Type</span></a></li>
<li><a href="../types/IsAny.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Is<wbr/>Any</span></a></li>
<li><a href="../types/Join.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Join</span></a></li>
<li><a href="../types/KeysOfAType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Keys<wbr/>OfAType</span></a></li>
<li><a href="../types/KeysOfOtherType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Keys<wbr/>Of<wbr/>Other<wbr/>Type</span></a></li>
<li><a href="../types/ListSearchIndexesOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>List<wbr/>Search<wbr/>Indexes<wbr/>Options</span></a></li>
<li><a href="../types/MatchKeysAndValues.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Match<wbr/>Keys<wbr/>And<wbr/>Values</span></a></li>
<li><a href="../types/MongoClientEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Mongo<wbr/>Client<wbr/>Events</span></a></li>
<li><a href="../types/MongoErrorLabel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Mongo<wbr/>Error<wbr/>Label</span></a></li>
<li><a href="../types/MonitorEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Monitor<wbr/>Events</span></a></li>
<li><a href="../types/NestedPaths.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Nested<wbr/>Paths</span></a></li>
<li><a href="../types/NestedPathsOfType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Nested<wbr/>Paths<wbr/>Of<wbr/>Type</span></a></li>
<li><a href="../types/NonObjectIdLikeDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Non<wbr/>Object<wbr/>Id<wbr/>Like<wbr/>Document</span></a></li>
<li><a href="../types/NotAcceptedFields.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Not<wbr/>Accepted<wbr/>Fields</span></a></li>
<li><a href="../types/NumericType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Numeric<wbr/>Type</span></a></li>
<li><a href="../types/OIDCRefreshFunction.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>OIDCRefresh<wbr/>Function</span></a></li>
<li><a href="../types/OIDCRequestFunction.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>OIDCRequest<wbr/>Function</span></a></li>
<li><a href="../types/OneOrMore.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>One<wbr/>Or<wbr/>More</span></a></li>
<li><a href="../types/OnlyFieldsOfType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Only<wbr/>Fields<wbr/>Of<wbr/>Type</span></a></li>
<li><a href="../types/OperationTime.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Operation<wbr/>Time</span></a></li>
<li><a href="../types/OptionalId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Optional<wbr/>Id</span></a></li>
<li><a href="../types/OptionalUnlessRequiredId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Optional<wbr/>Unless<wbr/>Required<wbr/>Id</span></a></li>
<li><a href="../types/ProfilingLevel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Profiling<wbr/>Level</span></a></li>
<li><a href="../types/ProfilingLevelOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Profiling<wbr/>Level<wbr/>Options</span></a></li>
<li><a href="../types/PropertyType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Property<wbr/>Type</span></a></li>
<li><a href="../types/PullAllOperator.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Pull<wbr/>All<wbr/>Operator</span></a></li>
<li><a href="../types/PullOperator.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Pull<wbr/>Operator</span></a></li>
<li><a href="../types/PushOperator.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Push<wbr/>Operator</span></a></li>
<li><a href="../types/ReadConcernLevel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Read<wbr/>Concern<wbr/>Level</span></a></li>
<li><a href="../types/ReadConcernLike.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Read<wbr/>Concern<wbr/>Like</span></a></li>
<li><a href="../types/ReadPreferenceLike.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Read<wbr/>Preference<wbr/>Like</span></a></li>
<li><a href="../types/ReadPreferenceMode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Read<wbr/>Preference<wbr/>Mode</span></a></li>
<li><a href="../types/RegExpOrString.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Reg<wbr/>Exp<wbr/>Or<wbr/>String</span></a></li>
<li><a href="../types/RemoveUserOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Remove<wbr/>User<wbr/>Options</span></a></li>
<li><a href="../types/ResumeToken.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Resume<wbr/>Token</span></a></li>
<li><a href="../types/ReturnDocument.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Return<wbr/>Document</span></a></li>
<li><a href="../types/RunCommandOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Run<wbr/>Command<wbr/>Options</span></a></li>
<li><a href="../types/RunCursorCommandOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Run<wbr/>Cursor<wbr/>Command<wbr/>Options</span></a></li>
<li><a href="../types/SchemaMember.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Schema<wbr/>Member</span></a></li>
<li><a href="../types/ServerApiVersion.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Server<wbr/>Api<wbr/>Version</span></a></li>
<li><a href="../types/ServerEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Server<wbr/>Events</span></a></li>
<li><a href="../types/ServerSessionId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Server<wbr/>Session<wbr/>Id</span></a></li>
<li><a href="../types/ServerType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Server<wbr/>Type</span></a></li>
<li><a href="../types/SetFields.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Set<wbr/>Fields</span></a></li>
<li><a href="../types/SetProfilingLevelOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Set<wbr/>Profiling<wbr/>Level<wbr/>Options</span></a></li>
<li><a href="../types/Sort.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Sort</span></a></li>
<li><a href="../types/SortDirection.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Sort<wbr/>Direction</span></a></li>
<li><a href="../types/Stream.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Stream</span></a></li>
<li><a href="../types/StrictFilter.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Strict<wbr/>Filter</span></a></li>
<li><a href="../types/StrictMatchKeysAndValues.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Strict<wbr/>Match<wbr/>Keys<wbr/>And<wbr/>Values</span></a></li>
<li><a href="../types/StrictUpdateFilter.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Strict<wbr/>Update<wbr/>Filter</span></a></li>
<li><a href="../types/SupportedNodeConnectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Supported<wbr/>Node<wbr/>Connection<wbr/>Options</span></a></li>
<li><a href="../types/SupportedSocketOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Supported<wbr/>Socket<wbr/>Options</span></a></li>
<li><a href="../types/SupportedTLSConnectionOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>SupportedTLSConnection<wbr/>Options</span></a></li>
<li><a href="../types/SupportedTLSSocketOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>SupportedTLSSocket<wbr/>Options</span></a></li>
<li><a href="../types/TagSet.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Tag<wbr/>Set</span></a></li>
<li><a href="../types/TopologyEvents.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Topology<wbr/>Events</span></a></li>
<li><a href="../types/TopologyType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Topology<wbr/>Type</span></a></li>
<li><a href="../types/UpdateFilter.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Update<wbr/>Filter</span></a></li>
<li><a href="../types/W.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>W</span></a></li>
<li><a href="../types/WithId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>With<wbr/>Id</span></a></li>
<li><a href="../types/WithSessionCallback.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>With<wbr/>Session<wbr/>Callback</span></a></li>
<li><a href="../types/WithTransactionCallback.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>With<wbr/>Transaction<wbr/>Callback</span></a></li>
<li><a href="../types/WithoutId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Without<wbr/>Id</span></a></li>
<li><a href="../variables/AuthMechanism-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g></svg><span>Auth<wbr/>Mechanism</span></a></li>
<li><a href="../variables/AutoEncryptionLoggerLevel-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Auto<wbr/>Encryption<wbr/>Logger<wbr/>Level</span></a></li>
<li><a href="../variables/BatchType-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Batch<wbr/>Type</span></a></li>
<li><a href="../variables/CURSOR_FLAGS.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>CURSOR_<wbr/>FLAGS</span></a></li>
<li><a href="../variables/Compressor-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Compressor</span></a></li>
<li><a href="../variables/ExplainVerbosity-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Explain<wbr/>Verbosity</span></a></li>
<li><a href="../variables/GSSAPICanonicalizationValue-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>GSSAPICanonicalization<wbr/>Value</span></a></li>
<li><a href="../variables/LEGAL_TCP_SOCKET_OPTIONS.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>LEGAL_<wbr/>TCP_<wbr/>SOCKET_<wbr/>OPTIONS</span></a></li>
<li><a href="../variables/LEGAL_TLS_SOCKET_OPTIONS.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>LEGAL_<wbr/>TLS_<wbr/>SOCKET_<wbr/>OPTIONS</span></a></li>
<li><a href="../variables/MONGO_CLIENT_EVENTS.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>MONGO_<wbr/>CLIENT_<wbr/>EVENTS</span></a></li>
<li><a href="../variables/MongoErrorLabel-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Mongo<wbr/>Error<wbr/>Label</span></a></li>
<li><a href="../variables/ProfilingLevel-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Profiling<wbr/>Level</span></a></li>
<li><a href="../variables/ReadConcernLevel-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Read<wbr/>Concern<wbr/>Level</span></a></li>
<li><a href="../variables/ReadPreferenceMode-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Read<wbr/>Preference<wbr/>Mode</span></a></li>
<li><a href="../variables/ReturnDocument-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Return<wbr/>Document</span></a></li>
<li><a href="../variables/ServerApiVersion-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Server<wbr/>Api<wbr/>Version</span></a></li>
<li><a href="../variables/ServerType-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Server<wbr/>Type</span></a></li>
<li><a href="../variables/TopologyType-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>Topology<wbr/>Type</span></a></li></ul></nav></div></div></div>
<div class="tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
<div class="overlay"></div></body></html>